<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>课程表</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/curriculum.js"></script>
</head>
<body>

<div style="float:left;width:100%;">
    <%--<div class="easyui-calendar" style="width:180px;height:180px;"></div>--%>

    <div class="easyui-calendar" style="width: 20%; height : 180px;float: left;">
    </div>
    <div style="width: 80%; height: 100%;float: left;">
        <%--数据表格--%>
        <table id="all_datagrid" fit="true"></table>
    </div>
</div>







<%--表格工具栏--%>
<div id="tb">
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <input  class="easyui-textbox" prompt="按课程表名或所属课程名搜索" style="width: 200px" type="text" name="keyword" id="keyword">
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchT">查询</a>


</div>

<%--添加和编辑弹窗--%>
<div id="edit_dialog" align="center">
    <form id="edit_form" method="post">
        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <input type="hidden" id="deptId" name="id">
            <tr>
                <td align="right">班级:</td>
                <td><input class="easyui-combobox" name="clazz.id" data-options="
                         editable:false,
                         url:'/clazz/listData.do',
                         valueField:'id',
                         textField:'name',
                         panelHeight:'auto'
                "/></td>
            </tr>
            <tr>
                <td align="right">科目:</td>
                <td><input class="easyui-combobox" name="subject.id" data-options="
                          editable:false,
                           url:'/subject/listData.do',
                          valueField:'id',
                          textField:'name',
                          panelHeight:'auto'
                    "/>
                </td>
            </tr>
            <tr>
                <td align="right">星期:</td>
                <td><input class="easyui-textbox" name="weekday"  />

                </td>
            </tr>

            <tr>
                <td align="right">上课教师:</td>
                <td><input class="easyui-combobox" name="teacher.id" data-options="
                          url:'/employee/listData.do',
                          valueField:'id',
                          textField:'username',
                          panelHeight:'auto'
                    "/>
                </td>
            </tr>
            <tr>
                <td align="right">教室:</td>
                <td><input class="easyui-combobox" name="classroom.id" data-options="
                url:'/classRoom/listData.do',
                valueField:'id',
                textField:'name',
                panelHeight:'auto'
                "/>
                </td>
            </tr>
            <tr>
                <td align="right">上课时间:</td>
                <td><input class="easyui-datebox" name="schooltime"/>
                </td>
            </tr>
            <tr>
                <td align="right">备注:</td>
                <td><input class="easyui-textbox" name="remark" />

                </td>
            </tr>
            <tr>
                <td align="right">状态:</td>
                <td><input class="easyui-combobox" name="state" data-options="

                            editable:false,
                            valueField:'value',
                            textField:'text',
                            data:[
                                {
                                    text:'已上',
                                     value:'1',

                                },{

                                    text:'未上',
                                    value:'0',

                                }],
                                panelHeight:'auto'

                    " />

                </td>
            </tr>

        </table>
    </form>
</div>

<%--弹窗底部按钮--%>
</div>
<div id="bb">
    <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>

</body>
</html>
